<!DOCTYPE html>
<html>
<head>
	<title></title>
	<link rel="stylesheet" type="text/css" href="">
</head>
<body>
	<div class="test">
		<input id="captcha" type="text" name="hello">
		<input class="btn" type="button" value="提交">
	</div>
<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
<script type="text/javascript">
    $(function(){
        var oBtn      = $("input.btn");
        var oReminder = $("span.reminder");

        $(oBtn).bind('click', function(){

            var oContent = $("#captcha").val();
            var postData = {"hello": oContent};

            $.ajax({
                type:"POST",
                url: "{:url('index/user/index')}",
                data:postData,
                contentType: "application/json; charset=utf-8",
//                dataType: "json",
                success:function(data){
                    console.log(data);
                },
                error:function(){
                    console.log(888);
                }
            });
        });
    });
</script>
</body>
</html>